package com.qk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qk.common.PageResult;
import com.qk.dto.BusinessDto;
import com.qk.entity.Business;

public interface BusinessService extends IService<Business> {
    /**
     * 商机列表查询
     */
    PageResult<Business> businessList(BusinessDto businessDto);

    /**
     * 根据id查询商机，包含跟进列表
     */
    Business getBusinessById(Integer id);

    /**
     * 跟进商机
     */
    void trackRcord(Business business);

    /**
     * 踢回公海
     */
    void back(Integer id);

    /**
     * 商机转客户
     */
    void toCustomer(Integer id);
    /**
     * 商机公海列表查询
     */
    PageResult<Business> poolList(BusinessDto businessDto);
}
